<?php
namespace Hilaoyu\ComputeCloudClient\Api;

use AlibabaCloud\Tea\Model;
use Darabonba\OpenApi\OpenApiClient;
use Hilaoyu\Utils\Traits\ErrorsTrait;
use Hilaoyu\Utils\UtilArr;
use Hilaoyu\ComputeCloudClient\AliyunApi;



class AliApiBase
{
    use ErrorsTrait;
    protected $client;
    protected $api;
    protected $regionId;
    public function __construct(OpenApiClient $client ,AliyunApi $api,$regionId=''){
        $this->client = $client;
        $this->api = $api;
        $this->regionId = trim($regionId);
    }

    protected function getRegionId($regionId=''){
        $regionId = trim($regionId);
        if(!$regionId){
            $regionId = $this->regionId;
        }
        return $regionId;
    }





}
